vs
QUICK ANSWER
"Yes" is an interjection which is often translated as "sí", and "I did it" is a transitive verb phrase which is often translated as "lo hice". Learn more about the difference between "yes" and "I did it" below.
yes(
yehs
)An adverb is a word that describes a verb, an adjective, or other adverbs (e.g., to run quickly, very tired).
An interjection is a short utterance that expresses emotion, hesitation, or protest (e.g., Wow!).
A noun is a word referring to a person, animal, place, thing, feeling, or idea (e.g., man, dog, house).
I did it(
ay
dihd
iht
)A transitive verb phrase is a phrase that combines a verb with a preposition or other particle and requires a direct object (e.g., take out the trash.).